<template>
<div>
  <div class="d-form-group d-form-group-flex d-col-xs-12">
    <div class="d-form-label d-text-right">
      <label class="label-text">触发类型</label>
    </div>
    <div class="d-form-el">
      <select v-model="trigger.type" class="d-form-select">
        <option v-for="item in triggerTypes" :key="item.id" :value="item.id">{{ item.text }}</option>
      </select>
    </div>
  </div>
  <Date :data="trigger" />
</div>
</template>

<script>
import Date from './date'

export default {
  components: {
    Date
  },

  props: {
    trigger: {
      type: Object,
      default () {
        return {
          type: ''
        }
      }
    }
  },

  model: {
    prop: 'trigger'
  },

  data () {
    return {
      triggerTypes: [
        {id: '1', text: '制定计划时'}
      ]
    }
  }
}
</script>

<style scoped>
.d-form-label {
  width: 90px;
}
.d-form-textarea {
  min-height: 120px;
}
</style>
